export default [
    {
        /** 获取商品分类列表 */
        name: 'queryCategoryListServ',
        url: '/category/list/new',
        method: 'GET',
        pem: true
    },
    {
        /** 获取商品子分类列表 */
        name: 'categoryChildList',
        url: '/category/son/list',
        method: 'POST'
    },
    {
        /** pc端商品设置展示规则 */
        name: 'goodsPublic',
        url: '/goods/public',
        method: 'POST'
    },
    {
        /** 商品分类新增 */
        name: 'AddCategoryServ',
        url: '/category/save',
        method: 'POST'
    },
    {
        /** 商品分类编辑 */
        name: 'upDateCategoryServ',
        url: '/category/update',
        method: 'PUT'
    },
    {
        /** 商品分类拖拽 */
        name: 'dragCategoryServ',
        url: '/category/drag',
        method: 'POST'
    },
    {
        /** 商品分类删除 */
        name: 'delCategoryServ',
        url: '/category/destroy',
        method: 'DELETE'
    },
    // 商品管理
    {
        /** 获取商品规格名 */
        name: 'specificationListServ',
        url: '/specification/list',
        method: 'GET'
    },
    // 规格列表
    {
        name: 'querySkuSpecList',
        url: '/spec/list',
        method: 'POST'
    },
    {
        /** 商品列表 */
        name: 'queryGoodsListServ',
        url: '/goods/list',
        method: 'POST',
        pem: true
    },
    {
        /** 商品详情 */
        name: 'queryGoodsDetailServ',
        url: '/goods/detail',
        method: 'GET',
        pem: true
    },
    {
        /** 添加商品 */
        name: 'addGoodsDetailServ',
        url: '/goods/save',
        method: 'POST'
    },
    {
        /** 编辑商品 */
        name: 'updateGoodsDetailServ',
        url: '/goods/update',
        method: 'POST'
    },
    {
        /** 商品上下架 */
        name: 'shelfGoodsServ',
        url: '/goods/shelf',
        method: 'PUT',
        pem: true
    },
    {
        /** 商品单个删除 */
        name: 'deleteGoodsServ',
        url: '/goods/del',
        method: 'GET',
        pem: true
    },
    {
        /** 商品批量删除 */
        name: 'deleteBatchGoodsServ',
        url: '/goods/batch/del',
        method: 'POST'
    },
    {
        /** 检查商品是否在活动中 */
        name: 'checkActivityGoodsServ',
        url: '/spellGroup/checkBindGoods',
        method: 'GET',
        pem: true
    },
    {
        /** 规格列表 */
        name: 'getSpecList',
        url: '/spec/list'
    },
    {
        /** 规格值创建 */
        name: 'specCreat',
        url: '/spec/creat'
    },
    {
        /** 编辑规格接口 */
        name: 'specUpdate',
        url: '/spec/update'
    },
    {
        /** 删除规格接口 */
        name: 'specDel',
        url: '/spec/del',
        method: 'GET'
    },
    {
        /** 同步商品至 ERP */
        name: 'erpSyncGoods',
        url: '/goods/syncGoods',
        pem: true,
        method: 'POST'
    },
    {
        /** 同步商品至 ERP */
        name: 'erpSyncGoodsResult',
        url: '/goods/syncGoodsResult',
        method: 'POST'
    }
];
